{extend name='base'}
{block name='nav2'}
    <a><cite>用户管理</cite></a>
{/block}
{block name='nav3'}
    <a><cite>用户信息</cite></a>
{/block}
{block name='con1'}
    <div class="x-body">
        <xblock>
            <span class='layui-btn'>用户列表</span>
        </xblock>
        <table class="layui-table">
            <thead>
                <tr>
                    <th>序号</th>
                    <th>用户名</th>
                    <th>邮箱</th>
                    <th>登录权限</th>
                    <th>用户状态</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody id="x-img">
            {volist name='arr' id='list' key='i'}
                <tr>
                    <td>
                        {$i}
                    </td>
                    <td>
                        {$list.username}
                    </td>
                    <td>
                        {$list.email}
                    </td>
                    <td>
                        {$list.limit}
                    </td>
                    <td>
                        {$list.state}
                    </td>
                    <td class="td-manage">
                        <a title="禁用" href="{:url('user_forbid',['id'=>$list.id])}">
                            <i class="layui-icon">&#x1006;</i>
                        </a><a title="恢复" href="{:url('user_recover',['id'=>$list.id])}">
                            <i class="layui-icon">&#xe605;</i>
                        </a>
                    </td>
                </tr>
            {/volist}
            </tbody>
        </table>
        {$arr}
        <div id="page"></div>
    </div>
{/block}